package org.udori.job.user.controller;

import org.springframework.batch.item.ItemProcessor;
import org.udori.job.user.model.User;

public class UserProcessor implements ItemProcessor<User, User> {

	public User process(User user) throws Exception {
		if (user.getUserGbn().equals("U01")) {
			user.setUserGbn("Administrator");
		} else {
			user.setUserGbn("Partner");
		}
		return user;
	}

}
